﻿@model VedranKrizicPortfolio.Models.Skills

@{
    ViewBag.Title = "SkillEdit";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Edit Skill</legend>

        @Html.HiddenFor(model => model.id)


        <div class="edit-input">
            <div>
                @Html.LabelFor(model => model.SkillName)
                @Html.ValidationMessageFor(model => model.SkillName)
            </div>
            <div>
                @Html.EditorFor(model => model.SkillName)
            </div>
        </div>

        <div class="edit-input">
            <div>
                @Html.LabelFor(model => model.Rate)
                @Html.ValidationMessageFor(model => model.Rate)

            </div>
            <div>
                @Html.EditorFor(model => model.Rate)
            </div>
        </div>

        <div class="edit-input">
            <div>
                @Html.LabelFor(model => model.Order)
                @Html.ValidationMessageFor(model => model.Order)
            </div>
            <div>
                @Html.EditorFor(model => model.Order)
            
            </div>
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "SkillList")
</div>
